<T:ViewBase x:Class="WPFExcelReport.TVAARTE02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VASMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVAARTE.VASMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VASKOLL:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVAARTE.VASKOLL}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VASART:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVAARTE.VASART}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VASFARBE:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVAARTE.VASFARBE}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VASABNGRP:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVAARTE.VASABNGRP}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VASKUNDNR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVAARTE.VASKUNDNR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VASLFDNR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVAARTE.VASLFDNR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VASAENZL:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVAARTE.VASAENZL}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VASAENB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVAARTE.VASAENB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VASAEND:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVAARTE.VASAEND}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VASNEUB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVAARTE.VASNEUB}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsVAARTE,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwVAARTE}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwVAARTE, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="VASMANDANT"
                                    Binding="{Binding Path=VASMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASKOLL"
                                    Binding="{Binding Path=VASKOLL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASKOLL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASART"
                                    Binding="{Binding Path=VASART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASFARBE"
                                    Binding="{Binding Path=VASFARBE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASFARBE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASABNGRP"
                                    Binding="{Binding Path=VASABNGRP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASABNGRP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASKUNDNR"
                                    Binding="{Binding Path=VASKUNDNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASKUNDNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASLFDNR"
                                    Binding="{Binding Path=VASLFDNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASLFDNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASAENZL"
                                    Binding="{Binding Path=VASAENZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASAENZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASAENB"
                                    Binding="{Binding Path=VASAENB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASAENB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASAEND"
                                    Binding="{Binding Path=VASAEND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASAEND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASNEUB"
                                    Binding="{Binding Path=VASNEUB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASNEUB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASNEUD"
                                    Binding="{Binding Path=VASNEUD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASNEUD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASEKOLL"
                                    Binding="{Binding Path=VASEKOLL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASEKOLL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASEART"
                                    Binding="{Binding Path=VASEART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASEART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASEFARBE"
                                    Binding="{Binding Path=VASEFARBE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASEFARBE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASEDKUNDNR"
                                    Binding="{Binding Path=VASEDKUNDNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASEDKUNDNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASEDWERK"
                                    Binding="{Binding Path=VASEDWERK, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASEDWERK}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASEDABT"
                                    Binding="{Binding Path=VASEDABT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASEDABT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASEDART"
                                    Binding="{Binding Path=VASEDART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASEDART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASEDVAR"
                                    Binding="{Binding Path=VASEDVAR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASEDVAR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASEDESS"
                                    Binding="{Binding Path=VASEDESS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASEDESS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASECOL"
                                    Binding="{Binding Path=VASECOL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASECOL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASEFFARBE"
                                    Binding="{Binding Path=VASEFFARBE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASEFFARBE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASEBESCH"
                                    Binding="{Binding Path=VASEBESCH, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASEBESCH}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASEZUSTAND"
                                    Binding="{Binding Path=VASEZUSTAND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASEZUSTAND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASDKUNDNR"
                                    Binding="{Binding Path=VASDKUNDNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASDKUNDNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASDWERK"
                                    Binding="{Binding Path=VASDWERK, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASDWERK}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASDABT"
                                    Binding="{Binding Path=VASDABT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASDABT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASDART"
                                    Binding="{Binding Path=VASDART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASDART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASDVAR"
                                    Binding="{Binding Path=VASDVAR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASDVAR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASDESS"
                                    Binding="{Binding Path=VASDESS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASDESS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASCOL"
                                    Binding="{Binding Path=VASCOL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASCOL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASFFARBE"
                                    Binding="{Binding Path=VASFFARBE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASFFARBE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASBESCH"
                                    Binding="{Binding Path=VASBESCH, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASBESCH}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASZUSTAND"
                                    Binding="{Binding Path=VASZUSTAND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASZUSTAND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASKZ"
                                    Binding="{Binding Path=VASKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASPRIO"
                                    Binding="{Binding Path=VASPRIO, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASPRIO}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASBESTD"
                                    Binding="{Binding Path=VASBESTD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASBESTD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASDATUM"
                                    Binding="{Binding Path=VASDATUM, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASDATUM}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VASBEMERK"
                                    Binding="{Binding Path=VASBEMERK, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VASBEMERK}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VGPFILLER"
                                    Binding="{Binding Path=VGPFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VGPFILLER}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
